﻿<%@ Page Language="VB" MasterPageFile="~/Masterpages/MaestraFoto.master" AutoEventWireup="false"
    CodeFile="ConsultaFoto.aspx.vb" Inherits="photos_ConsultaFoto" Title="Galeria de imagenes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Estilos/StyleFotos.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:ObjectDataSource ID="odsAnimales" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetAnimalesConFoto" TypeName="Tom0014TableAdapters.GenealogiaTableAdapter">
    </asp:ObjectDataSource>
    <div class="fotos">
        <asp:DataList ID="dlAnimales" runat="server" CellPadding="4" CellSpacing="2" DataKeyField="AnimalId"
            DataSourceID="odsAnimales" ForeColor="#333333" RepeatColumns="3" UseAccessibleHeader="True"
            CaptionAlign="Top">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingItemStyle BackColor="White" />
            <ItemStyle BackColor="#E3EAEB" BorderStyle="Dotted" HorizontalAlign="Center" />
            <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <ItemTemplate>
                <center>
                    <asp:ImageButton ID="ImgFoto" runat="server" ImageAlign="AbsMiddle" ImageUrl='<%# Eval("image") %>'
                        PostBackUrl='<%# "~/Registro/general.aspx?animal="+CType(Eval("AnimalId"),String)+"&opt=1" %>'
                        Height="200px" Width="300px" ToolTip="Clic sobre la imagen para accesar a los detalles del animal" />
                </center>
                <asp:Label ID="nombre" runat="server" Text='<%# Eval("nombre") %>' Font-Bold="True"
                    Font-Names="Arial Black" Font-Size="0.9em" />
                <br />
                Animal: &nbsp;<asp:HyperLink ID="hlAnimal" runat="server" Text='<%# Eval("sexo")+CType(Eval("numero"),String)+Eval("letra")+ CType(Eval("ano"),String) %>'
                    NavigateUrl='<%# "~/Registro/general.aspx?animal=" + CType(Eval("AnimalId"),String)+"&opt=1" %>'></asp:HyperLink>
                <br />
                <br />
                Padre: &nbsp;
                <asp:HyperLink ID="hlPadre" runat="server" NavigateUrl='<%# "~/Registro/general.aspx?animal=" + CType(Eval("Id_padre"),String)+"&opt=1" %>'
                    Text='<%# Eval("padre") %>'></asp:HyperLink>
                &nbsp;||&nbsp; Madre: &nbsp;
                <asp:HyperLink ID="hlMadre" runat="server" NavigateUrl='<%# "~/Registro/general.aspx?animal=" + CType(Eval("Id_madre"),String)+"&opt=1" %>'
                    Text='<%# Eval("madre") %>'></asp:HyperLink>
                <br />
            </ItemTemplate>
        </asp:DataList>
    </div>
    <br />
</asp:Content>
